package com.chao.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chao.entity.Student;
import com.chao.mapper.StudentMapper;
import com.chao.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

//    @Autowired
//    StudentMapper studentMapper;

    @Override
    public Page<Student> selectALL(Page<Student> page) {
        return getBaseMapper().selectALL(page);
    }

    @Override
    public String selectMaxId(String like) {
        return getBaseMapper().selectMaxId(like);
    }
}
